package server.objects;

import org.json.JSONException;
import org.json.JSONObject;

public class User {

	public User() {
	}

	public String firstname;
	public String lastname;
	public String email;
	public String usertype;
	public Integer id;

	public JSONObject toJson() {
		try {
			return new JSONObject()
					.put("user",
							new JSONObject().put("firstname", this.firstname)
									.put("lastname", this.lastname)
									.put("email", this.email)
									.put("usertype", usertype));
		} catch (JSONException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return null;
	}

}
